<!DOCTYPE html>
<html lang="en">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<!-- Title and other stuffs -->
		<title>PerfAutoTest</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="author" content="">

		<!-- Stylesheets -->
		<link href="style/bootstrap.css" rel="stylesheet">
		<!-- Font awesome icon -->
		<link rel="stylesheet" href="style/font-awesome.css">
		<!-- jQuery UI -->
		<link rel="stylesheet" href="style/jquery-ui.css">
		<!-- Calendar -->
		<link rel="stylesheet" href="style/fullcalendar.css">
		<!-- prettyPhoto -->
		<link rel="stylesheet" href="style/prettyPhoto.css">
		<!-- Star rating -->
		<link rel="stylesheet" href="style/rateit.css">
		<!-- Date picker -->
		<link rel="stylesheet" href="style/bootstrap-datetimepicker.min.css">
		<!-- CLEditor -->
		<link rel="stylesheet" href="style/jquery.cleditor.css">
		<!-- Uniform -->
		<link rel="stylesheet" href="style/uniform.default.css">
		<!-- Bootstrap toggle -->
		<link rel="stylesheet" href="style/bootstrap-switch.css">
		<!-- Main stylesheet -->
		<link href="style/style.css" rel="stylesheet">
		<!-- Widgets stylesheet -->
		<link href="style/widgets.css" rel="stylesheet">

		<!-- Favicon -->
		<link rel="shortcut icon" href="img/favicon/favicon.png">
	</head>


	<body>

		<div class="navbar navbar-fixed-top bs-docs-nav" role="banner">
			<div class="conjtainer">
				<!--Navigation starts-->
				<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
					<ul class="navbar-collapse">
						<!--Links-->
						<ul class="nav navbar-nav navbar-left">
							<li class="dropdown navbar-left">
								<a data-toggle="dropdown" class="dropdown-toggle" href="#">
									<i class="icon-user"></i>管理员
									<b class="caret"></b>
								</a>
								<!--Dropdown menu-->
								<ul class="dropdown-menu">
									<li>
										<a href="userinfo.html">
											<i class="icon-user"></i>资料</a>
									</li>
									<li>
										<a href="userset.html">
											<i class="icon-cogs"></i>设置</a>
									</li>
									<li>
										<a href="exit.html">
											<i class="icon-off"></i>退出</a>
									</li>
								</ul>
							</li>
						</ul>
						<!--Search form-->
						<ul class="nav navbar-nav navbar-right">
							<form class="navbar-form navbar-right" role="search">
								<div class="form-group">
									<input type="text" class="form-control" placeholder="Search(无效)" />
								</div>
							</form>
						</ul>
					</ul>
				</nav>
			</div>
		</div>


		<!-- Header starts -->
		<header>
			<div class="container">
				<div class="row">
					<!--Logo section-->
					<div class="col-md-4">
						<!--Logo.-->
						<div class="logo">
							<h1>
								<a href="#">Perf
									<span class="bold"></span>
								</a>
							</h1>
							<p class="meta">性能测试平台</p>
						</div>
						<!--Logo ends-->
					</div>
					<!--待替换-->
					<div class="col-md-4"></div>
					<!--待替换-->
					<div class="col-md-4"></div>
				</div>
			</div>
		</header>

		<!-- Header ends -->

		<!-- Main content starts -->

		<div class="content">

			<!--Sidebar-->
			<div class="sidebar">
				<div class="sidebar-dropdown">
					<a href="#">导航</a>
				</div>
				<!--Sidebar navigation-->
				<!--If the main navigation has sub navigation,then add the class"has_sub"to"li"of main navigation.-->
				<ul id="nav">
					<!--Main menu with font awesome icon-->
					<li>
						<a href="index.html">
							<i class="icon-home"></i>首页</a>
					</li>
					<li class="has_sub">
						<a href="#" class="open subdrop">
							<i class="icon-list-alt"></i>配置管理
							<span class="pull-right">
								<i class="icon-chevron-right"></i>
							</span>
						</a>
						<ul style="display: block;">
							<li>
								<a href="basicconfig.html" class="open">基本信息配置</a>
							</li>
							<li>
								<a href="interfaceconfig.html">接口信息配置</a>
							</li>
							<li>
								<a href="boardconfig.html">单板信息配置</a>
							</li>
						</ul>
					</li>
					<li>
						<a href="autotest.html">
							<i class="icon-file-alt"></i>性能测试
							<span class="pull-right">
								<i class="icon-chevron-right"></i>
							</span>
						</a>
					</li>
					<li class="has_sub"> <a href="#"> <i class="icon-file-alt"></i>执行进度 <span class="pull-right">
								<i class="icon-chevron-right"></i>
							</span> </a>
						<ul>
							<li> <a href="logtext.html">日志查看</a> </li>
							<li> <a href="logchart.html">图表查看</a> </li>
						</ul>
					</li>
					<li>
						<a href="history.html">
							<i class="icon-file-alt"></i>版本列表
							<span class="pull-right">
								<i class="icon-chevron-right"></i>
							</span>
						</a>
					</li>
				</ul>
			</div>
			<!--Sidebar ends-->

			<!-- Main bar -->
			<div class="mainbar">

				<!-- Page heading -->
				<div class="page-head">
					<h2 class="pull-left">
						<i class="icon-table"></i> 基本信息配置</h2>

					<!-- Breadcrumb -->
					<div class="bread-crumb pull-right">
						<a href="index.html">
							<i class="icon-home"></i>首页</a>
						<!-- Divider -->
						<span class="divider">/</span>
						<a href="#" class="bread-current"> 控制台（无效）</a>
					</div>

					<div class="clearfix"></div>

				</div>
				<!-- Page heading ends -->

				<!-- Matter -->

				<div class="matter">
					<div class="container">

						<!-- Table -->

						<div class="row">

							<div class="col-md-12">
								<div class="widget">

									<div class="widget-head">
										<div class="pull-left">配置详情</div>
										<div class="widget-icons pull-right">
											<a href="#" class="wminimize">
												<i class="icon-chevron-up"></i>
											</a>
											<a href="#" class="wclose">
												<i class="icon-remove"></i>
											</a>
										</div>
										<div class="clearfix"></div>
									</div>

									<div class="widget-content">

										<table class="table table-striped table-bordered table-hover">
											<thead>
												<tr>
													<th>#</th>
													<th>配置项名称</th>
													<th>配置项取值</th>
													<th>配置项说明</th>
													<th>配置项修改</th>
												</tr>
											</thead>
											<tbody>

												<tr>
													<td>1</td>
													<td>业务名称</td>
													<td id="platform"></td>
													<td>表示当前业务的名称，如：CloudMusic</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('platform')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('platform')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>2</td>
													<td>版本名称</td>
													<td id="version"></td>
													<td>表示当前版本的名称，如：1.0.101</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('version')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('version')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>3</td>
													<td>前缀</td>
													<td id="prefix"></td>
													<td>一个用来标识测试进度的前缀，如：SDV</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('prefix')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('prefix')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>4</td>
													<td>后缀</td>
													<td id="suffix"></td>
													<td>一个用来标识测试进度的前缀，如：Debug_log</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('suffix')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('suffix')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>5</td>
													<td>并发策略</td>
													<td id="vusers"></td>
													<td>测试执行的并发策略，如：10,50,100,200,500</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('vusers')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('vusers')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>6</td>
													<td>执行时间</td>
													<td id="dalta"></td>
													<td>性能测试每个阶段持续的时间（秒），如：180</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('dalta')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('dalta')"></i>
														</button>
													</td>
												</tr>
												<tr>
													<td>7</td>
													<td>延时时间</td>
													<td id="delay"></td>
													<td>延时开始统计性能数据的时间（秒），如：20</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('delay')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('delay')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>8</td>
													<td>账户</td>
													<td id="user"></td>
													<td>登录的账号，如：admin</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('user')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('user')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>9</td>
													<td>密码</td>
													<td id="pw"></td>
													<td>登录的密码，如：admin</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('pw')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('pw')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>10</td>
													<td>服务端监控端口</td>
													<td id="monitor_port"></td>
													<td>性能工具服务端监控端口，如：4444</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('monitor_port')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('monitor_port')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>11</td>
													<td>数据库地址</td>
													<td id="mysql_host"></td>
													<td>存储性能数据的数据库地址，如：192.168.42.63</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('mysql_host')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('mysql_host')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>12</td>
													<td>数据库端口</td>
													<td id="mysql_port"></td>
													<td>存储性能数据的数据库端口，如：3306</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('mysql_port')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('mysql_port')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>13</td>
													<td>数据库用户</td>
													<td id="mysql_user"></td>
													<td>存储性能数据的数据库用户名，如：root</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('mysql_user')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('mysql_user')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>14</td>
													<td>数据库密码</td>
													<td id="mysql_pw"></td>
													<td>存储性能数据的数据库密码，如：huawei@123</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('mysql_pw')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('mysql_pw')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>15</td>
													<td>数据库库名</td>
													<td id="mysql_db"></td>
													<td>存储性能数据的数据库库名，如：test</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('mysql_db')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('mysql_db')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>16</td>
													<td>TPS异常最大次数</td>
													<td id="tps_num"></td>
													<td>允许出现TPS异常的最大次数，如：5</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('tps_num')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('tps_num')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>17</td>
													<td>时延范围</td>
													<td id="avgdelay_num"></td>
													<td>平均时延允许最大值，ms，如：500</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('avgdelay_num')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('avgdelay_num')"></i>
														</button>
													</td>
												</tr>

												<tr>
													<td>18</td>
													<td>错误范围</td>
													<td id="err_num"></td>
													<td>允许出现的最大错误计数，如：10</td>
													<td>
														<button class="btn btn-xs btn-success">
															<i class="icon-ok" onclick="setConfig('err_num')"></i>
														</button>
														<button class="btn btn-xs btn-warning">
															<i class="icon-pencil" onclick="setContenteditableById('err_num')"></i>
														</button>
													</td>
												</tr>

											</tbody>
										</table>

									</div>
								</div>

								<!-- Footer starts -->
								<footer>
									<div class="container">
										<div class="row">
											<div class="col-md-12">
												<!-- Copyright info -->
												<p class="copy">Copyright &copy; 2012 | <a href="#">Your Site</a> </p>
											</div>
										</div>
									</div>
								</footer>

								<!-- Footer ends -->

								<!-- Scroll to top -->
								<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span>

								<!-- JS -->
								<script src="js/jquery.js"></script> <!-- jQuery -->
								<script src="js/bootstrap.js"></script> <!-- Bootstrap -->
								<script src="js/jquery-ui-1.9.2.custom.min.js"></script> <!-- jQuery UI -->
								<script src="js/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar -->
								<script src="js/jquery.rateit.min.js"></script> <!-- RateIt - Star rating -->
								<script src="js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto -->

								<!-- jQuery Flot -->
								<script src="js/excanvas.min.js"></script>
								<script src="js/jquery.flot.js"></script>
								<script src="js/jquery.flot.resize.js"></script>
								<script src="js/jquery.flot.pie.js"></script>
								<script src="js/jquery.flot.stack.js"></script>

								<!-- jQuery Notification - Noty -->
								<script src="js/jquery.noty.js"></script>
								<script src="js/themes/default.js"></script>
								<script src="js/layouts/bottom.js"></script>
								<script src="js/layouts/topRight.js"></script>
								<script src="js/layouts/top.js"></script>
								<!-- jQuery Notification ends -->

								<!-- Sparklines -->
								<script src="js/sparklines.js"></script>
								<!-- CLEditor -->
								<script src="js/jquery.cleditor.min.js"></script>
								<!-- Date picker -->
								<script src="js/bootstrap-datetimepicker.min.js"></script>
								<!-- jQuery Uniform -->
								<script src="js/jquery.uniform.min.js"></script>
								<!-- Bootstrap Toggle -->
								<script src="js/bootstrap-switch.min.js"></script>
								<!-- Filter for support page -->
								<script src="js/filter.js"></script>
								<!-- Custom codes -->
								<script src="js/custom.js"></script>
								<!-- Charts & Graphs -->
								<script src="js/charts.js"></script>

								<!-- 自定义js方法 -->
								<script src="js/g2.min.js" type="text/javascript" charset="utf-8"></script>
								<script src="js/data-set.min.js" type="text/javascript" charset="utf-8"></script>
								<script src="js/PerfUtils.js" type="text/javascript" charset="utf-8"></script>



								<script type="text/javascript">
									$(function() {
										getBasicConfig();
									})
								</script>
	</body>

</html>
